package com.scy.edu;

import com.scy.edu.client.RpcConsumer;
import com.scy.edu.service.UserService;

/**
 * @author 司晨雨
 * @date 2020/8/20 23:04
 * @description
 */
public class ConsumerBoot {


    public static void main(String[] args) throws InterruptedException {
        UserService  userService = (UserService) RpcConsumer.createProxy(UserService.class);

        while (true){
            String result = userService.sayHello("scy");
            System.out.println(result);
            Thread.sleep(2000);
        }
    }

}
